package com.hcb.micro.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ProductRewardMapper;
import com.hcb.micro.dto.ProductReward;
import com.hcb.micro.service.IProductRewardService;

@Service("ProductRewardService")
public class ProductRewardServiceImpl implements IProductRewardService {

	@Autowired
	ProductRewardMapper prm;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return prm.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ProductReward record) {
		return prm.insert(record);
	}

	@Override
	public int insertSelective(ProductReward record) {
		return prm.insertSelective(record);
	}

	@Override
	public ProductReward selectByPrimaryKey(Integer id) {
		return prm.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductReward record) {
		return prm.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKey(ProductReward record) {
		return prm.updateByPrimaryKeySelective(record);
	}

	@Override
	public ProductReward selectByProductId(Integer productId) {
		return prm.selectByProductId(productId);
	}

}
